package com.ruoyi.siyun.service.impl;

import java.util.List;

import com.ruoyi.siyun.domain.SyReviewFeedback;
import com.ruoyi.siyun.mapper.SyReviewFeedbackMapper;
import com.ruoyi.siyun.service.ISyReviewFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * feedbackService业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
@Service
public class SyReviewFeedbackServiceImpl implements ISyReviewFeedbackService
{
    @Autowired
    private SyReviewFeedbackMapper syReviewFeedbackMapper;

    /**
     * 查询feedback
     * 
     * @param id feedback主键
     * @return feedback
     */
    @Override
    public SyReviewFeedback selectSyReviewFeedbackById(Long id)
    {
        return syReviewFeedbackMapper.selectSyReviewFeedbackById(id);
    }

    /**
     * 查询feedback列表
     * 
     * @param syReviewFeedback feedback
     * @return feedback
     */
    @Override
    public List<SyReviewFeedback> selectSyReviewFeedbackList(SyReviewFeedback syReviewFeedback)
    {
        return syReviewFeedbackMapper.selectSyReviewFeedbackList(syReviewFeedback);
    }

    /**
     * 新增feedback
     * 
     * @param syReviewFeedback feedback
     * @return 结果
     */
    @Override
    public int insertSyReviewFeedback(SyReviewFeedback syReviewFeedback)
    {
        return syReviewFeedbackMapper.insertSyReviewFeedback(syReviewFeedback);
    }

    /**
     * 修改feedback
     * 
     * @param syReviewFeedback feedback
     * @return 结果
     */
    @Override
    public int updateSyReviewFeedback(SyReviewFeedback syReviewFeedback)
    {
        return syReviewFeedbackMapper.updateSyReviewFeedback(syReviewFeedback);
    }

    /**
     * 批量删除feedback
     * 
     * @param ids 需要删除的feedback主键
     * @return 结果
     */
    @Override
    public int deleteSyReviewFeedbackByIds(Long[] ids)
    {
        return syReviewFeedbackMapper.deleteSyReviewFeedbackByIds(ids);
    }

    /**
     * 删除feedback信息
     * 
     * @param id feedback主键
     * @return 结果
     */
    @Override
    public int deleteSyReviewFeedbackById(Long id)
    {
        return syReviewFeedbackMapper.deleteSyReviewFeedbackById(id);
    }
}
